﻿using System;
using System.Data;
using System.Reflection;
using System.Web;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.ipanel
{
    public partial class url : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            UrlDao dao = new UrlDao();
            DataTable table = dao.SelectAll(base.Conn, HttpContext.Current.User.Identity.Name);
            if (table.Rows.Count > 0)
            {
                this.rptPerson.DataSource = table;
                this.rptPerson.DataBind();
            }
            else
            {
                this.litPerson.Text = base.ShowMessage("尚未添加网址");
            }
            DataTable table2 = dao.SelectAll(base.Conn, "");
            if (table2.Rows.Count > 0)
            {
                this.rptPublic.DataSource = table2;
                this.rptPublic.DataBind();
            }
            else
            {
                this.litPublic.Text = base.ShowMessage("尚未添加网址");
            }
        }
    }
}